<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body bgcolor="pink">
		<%
		request.setCharacterEncoding("utf-8");
		String name = request.getParameter("username");
		String sex = request.getParameter("sex");
		String sports[] = request.getParameterValues("sport");
		String s = "";
		for(int i = 0; i<sports.length; i++){
			s+=sports[i]+"&nbsp;&nbsp;";
		}
		%>
		您的姓名:&nbsp;<%=name %><br>
		您的性别:&nbsp;<%=sex %><br>
		您喜欢的球队有:&nbsp;<%=s %><br>
</body>
</html>